package cn._51doit.flink.day03.transformations;

import java.util.Objects;

public class WordCountBean {

    public String word;

    public Integer count;

    public WordCountBean(){}

    public WordCountBean(String word, Integer count) {
        this.word = word;
        this.count = count;
    }

    @Override
    public String toString() {
        return "WordCountBean{" +
                "word='" + word + '\'' +
                ", count=" + count +
                '}';
    }


    @Override
    public int hashCode() {
        return word.hashCode();
    }

    public static WordCountBean of(String word, Integer count) {
        return new WordCountBean(word, count);
    }
}
